400
Can I change the format of date to be shown in the control

Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Default");
	Exlistlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"Format.1");
		var_Column->ComputedField = L"%0";
		var_Column->FormatColumn = L"dateF(value) replace `/` with `-`";
	Exlistlib_tlb::IColumnPtr var_Column1 = var_Columns->Add(L"Format.2");
		var_Column1->ComputedField = L"%0";
		var_Column1->set_Def(Exlistlib_tlb::DefColumnEnum::exCaptionFormat,TVariant(1));
		var_Column1->FormatColumn = L"`<b>`+ shortdate(value) + `</b> ` + timeF(value)";
	Exlistlib_tlb::IColumnPtr var_Column2 = var_Columns->Add(L"Format.3");
		var_Column2->ComputedField = L"%0";
		var_Column2->set_Def(Exlistlib_tlb::DefColumnEnum::exCaptionFormat,TVariant(1));
		var_Column2->FormatColumn = TVariant(String("( dateF(value) replace `/` with `-` ) + ` <b>`+ ( weekday(value) case ( 0 : `Su`; 1 : `Mo`; 2 : `Tu`; 3 : `We`; 4 : `Th`; 5 : `") +
"Fr`; 6 : `Sa`) )");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2001,1,2,10,00,00,0).operator double()));

399
How can I put a picture on the cell's background (method 3)

List1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
List1->VisualAppearance->Add(2,TVariant("CP:1 0 0 -164 0"));
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"column");
	Exlistlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"column");
		var_Column->Alignment = Exlistlib_tlb::AlignmentEnum::CenterAlignment;
		var_Column->HeaderAlignment = Exlistlib_tlb::AlignmentEnum::CenterAlignment;
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long i = var_Items->Add(TNoParam());
	var_Items->set_SelectableItem(i,false);
	var_Items->set_Caption(i,TVariant(1),TVariant("caption"));
	var_Items->set_CellBackColor(i,TVariant(1),0x2000000);

398
How can I put a picture on the cell's background (method 2)

List1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"column");
	var_Columns->Add(L"column");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long i = var_Items->Add(TNoParam());
	var_Items->set_SelectableItem(i,false);
	var_Items->set_Caption(i,TVariant(1),TVariant("caption"));
	var_Items->set_CellBackColor(i,TVariant(1),0x1000000);
	var_Items->set_CellPicture(i,TVariant(1),List1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\auction.gif`)"));
	var_Items->set_CellPictureWidth(i,TVariant(1),128);
	var_Items->set_CellPictureHeight(i,TVariant(1),List1->DefaultItemHeight);

397
How can I put a picture on the cell's background (method 1)

List1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"column");
	Exlistlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"column");
		var_Column->Alignment = Exlistlib_tlb::AlignmentEnum::CenterAlignment;
		var_Column->HeaderAlignment = Exlistlib_tlb::AlignmentEnum::CenterAlignment;
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long i = var_Items->Add(TNoParam());
	var_Items->set_SelectableItem(i,false);
	var_Items->set_Caption(i,TVariant(1),TVariant("caption"));
	var_Items->set_CellBackColor(i,TVariant(1),0x1000000);

396
How do I access the cells, or how do I get the values in the columns

Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"C1");
	var_Columns->Add(L"C2");
	var_Columns->Add(L"C3");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("SubItem 1.1"));
	var_Items->set_Caption(h,TVariant(2),TVariant("SubItem 1.2"));
	OutputDebugString( PChar(var_Items->get_Caption(h,TVariant(2))) );

395
How can I apply the same ConditionalFormat on more than 1(one) column (multiple columns and not on item)

List1->BeginUpdate();
Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"1",TVariant("K1"));
	var_ConditionalFormat->BackColor = RGB(255,0,0);
	var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x1);
Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat1 = List1->ConditionalFormats->Add(L"1",TVariant("K2"));
	var_ConditionalFormat1->BackColor = RGB(255,0,0);
	var_ConditionalFormat1->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x2);
List1->MarkSearchColumn = false;
List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum(0xfffffffc | Exlistlib_tlb::GridLinesEnum::exVLines);
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2");
	var_Columns->Add(L"Column 3");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TNoParam());
	var_Items->Add(TNoParam());
	var_Items->Add(TNoParam());
List1->EndUpdate();

394
How can I get the list of items as they are displayed

List1->BeginUpdate();
List1->BackColorAlternate = RGB(240,240,240);
List1->Columns->Add(L"Names");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Mantel"));
	var_Items->Add(TVariant("Mechanik"));
	var_Items->Add(TVariant("Motor"));
	var_Items->Add(TVariant("Murks"));
	var_Items->Add(TVariant("Märchen"));
	var_Items->Add(TVariant("Möhren"));
	var_Items->Add(TVariant("Mühle"));
List1->Columns->get_Item(TVariant(0))->SortOrder = Exlistlib_tlb::SortOrderEnum::SortAscending;
List1->EndUpdate();
OutputDebugString( PChar(List1->GetItems(TVariant(1))) );

393
Is posible to reduce the size of the picture to be shown in the column's caption

List1->BeginUpdate();
List1->HTMLPicture[L"pic1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
List1->HeaderHeight = 48;
List1->Columns->Add(L"DefaultSize")->HTMLCaption = L"Default-Size <img>pic1</img> Picture";
List1->Columns->Add(L"CustomSize")->HTMLCaption = L"Custom-Size <img>pic1:16</img> Picture";
List1->EndUpdate();

392
How can I change the color, font, bold etc for the items/cells in the same column or for the entire column

List1->BeginUpdate();
List1->MarkSearchColumn = false;
Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"1",TNoParam());
	var_ConditionalFormat->Bold = true;
	var_ConditionalFormat->ForeColor = RGB(255,0,0);
	var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x1);
List1->Columns->Add(L"C1");
Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"C2");
	var_Column->HeaderBold = true;
	var_Column->HTMLCaption = L"<fgcolor=FF0000>C2";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_Caption(var_Items->Add(TVariant(10)),TVariant(1),TVariant(11));
	var_Items->set_Caption(var_Items->Add(TVariant(12)),TVariant(1),TVariant(13));
List1->EndUpdate();

391
Is it possible to limit the height of item while resizing the row

// AddItem event - Occurs after a new Item is inserted to Items collection.
void __fastcall TForm1::List1AddItem(TObject *Sender,long   Item)
{
	List1->Items->set_ItemMinHeight(Item,18);
	List1->Items->set_ItemMaxHeight(Item,72);
}

List1->BeginUpdate();
List1->ItemsAllowSizing = Exlistlib_tlb::ItemsAllowSizingEnum::exResizeItem;
List1->ScrollBySingleLine = false;
List1->BackColorAlternate = RGB(240,240,240);
List1->Columns->Add(L"Names");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Mantel"));
	var_Items->Add(TVariant("Mechanik"));
	var_Items->Add(TVariant("Motor"));
	var_Items->Add(TVariant("Murks"));
	var_Items->Add(TVariant("Märchen"));
	var_Items->Add(TVariant("Möhren"));
	var_Items->Add(TVariant("Mühle"));
List1->Columns->get_Item(TVariant(0))->SortOrder = Exlistlib_tlb::SortOrderEnum::SortAscending;
List1->EndUpdate();

390
Can I specify un-sortable items so they keep their position once the user sorts the columns

List1->Columns->Add(L"Def")->SortType = Exlistlib_tlb::SortTypeEnum::SortNumeric;
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_SortableItem(var_Items->Add(TVariant("Unsortable")),false);
	var_Items->Add(TVariant(1));
	var_Items->Add(TVariant(2));
	var_Items->Add(TVariant(3));

389
The item is not getting selected when clicking the cell's checkbox. What should I do

// CellStateChanged event - Fired after cell's state is changed.
void __fastcall TForm1::List1CellStateChanged(TObject *Sender,long   ItemIndex,long   ColIndex)
{
	List1->Items->set_SelectItem(ItemIndex,true);
}

List1->Columns->Add(L"Check")->set_Def(Exlistlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(0));
	var_Items->Add(TVariant(1));
	var_Items->Add(TVariant(2));
	var_Items->Add(TVariant(3));

388
Does your control supports multiple lines tooltip

List1->HTMLPicture[L"pic1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
List1->ToolTipDelay = 1;
List1->Columns->Add(L"tootip")->ToolTip = TVariant(String("<br><font Tahoma;10>This</font> is a <b>multi-lines</b> tooltip assigned to a column. The tooltip supports built-in HTML tags, ") +
"icons and pictures.<br><br><br><img>pic1</img> picture ... <br><br>");

387
How can I prevent highlighting the column from the cursor - point

List1->VisualAppearance->Add(1,TVariant(String("gBFLBCJwBAEHhEJAEGg4BI0IQAAYAQGKIYBkAKBQAGaAoDDUOQzQwAAxDKKUEwsACEIrjKCYVgOHYYRrIMYgBCMJhLEoaZLhEZRQiqDYtRDFQBSDDcPw/EaRZohGaYJ") +
"gEgI="));
List1->Background[Exlistlib_tlb::BackgroundPartEnum::exCursorHoverColumn] = 0x1000000;
List1->Columns->Add(L"S")->Width = 32;
List1->Columns->Add(L"Level 1")->set_LevelKey(TVariant(1));
List1->Columns->Add(L"Level 2")->set_LevelKey(TVariant(1));
List1->Columns->Add(L"Level 3")->set_LevelKey(TVariant(1));
List1->Columns->Add(L"E1")->Width = 32;
List1->Columns->Add(L"E2")->Width = 32;
List1->Columns->Add(L"E3")->Width = 32;
List1->Columns->Add(L"E4")->Width = 32;

386
Is there any option to show the tooltip programmatically

// MouseMove event - Occurs when the user moves the mouse.
void __fastcall TForm1::List1MouseMove(TObject *Sender,short   Button,short   Shift,int   X,int   Y)
{
	List1->ShowToolTip(PChar(List1->ItemFromPoint[-1,-1,c,hit]),TVariant(""),TVariant("8"),TVariant("8"),TNoParam());
}

List1->BeginUpdate();
List1->Columns->Add(L"Def");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
List1->EndUpdate();

385
Is it possible to prevent covering the colors by selected rows

List1->SelBackMode = Exlistlib_tlb::BackModeEnum::exTransparent;
List1->BackColorAlternate = RGB(240,240,240);
List1->Columns->Add(L"Column");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->Add(TVariant("Item 4"));
	var_Items->Add(TVariant("Item 5"));

384
Can I use PNG images to display pictures in the control

List1->HTMLPicture[L"pic1"] = TVariant("c:\\exontrol\\images\\card.png");
List1->HeaderHeight = 48;
List1->Columns->Add(L"ColumnName")->HTMLCaption = L"<b>HTML</b> Column <img>pic1</img> Picture";

383
Does your control support conditional format and computed fields

List1->BeginUpdate();
List1->MarkSearchColumn = false;
Exlistlib_tlb::IConditionalFormatsPtr var_ConditionalFormats = List1->ConditionalFormats;
	Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = var_ConditionalFormats->Add(L"%1 >4",TNoParam());
		var_ConditionalFormat->Bold = true;
		var_ConditionalFormat->StrikeOut = true;
		var_ConditionalFormat->ForeColor = RGB(255,0,0);
		var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x1);
	Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat1 = var_ConditionalFormats->Add(L"%2 > 4",TNoParam());
		var_ConditionalFormat1->Bold = true;
		var_ConditionalFormat1->StrikeOut = true;
		var_ConditionalFormat1->ForeColor = RGB(255,0,0);
		var_ConditionalFormat1->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x2);
	Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat2 = var_ConditionalFormats->Add(L"%3 > 4",TNoParam());
		var_ConditionalFormat2->Bold = true;
		var_ConditionalFormat2->StrikeOut = true;
		var_ConditionalFormat2->ForeColor = RGB(255,0,0);
		var_ConditionalFormat2->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x3);
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name");
	Exlistlib_tlb::IColumnPtr var_Column = var_Columns->Add(L"A");
		var_Column->SortType = Exlistlib_tlb::SortTypeEnum::SortNumeric;
		var_Column->AllowSizing = false;
		var_Column->Width = 36;
		var_Column->FormatColumn = L"len(value) ? value + ' +'";
	Exlistlib_tlb::IColumnPtr var_Column1 = var_Columns->Add(L"B");
		var_Column1->SortType = Exlistlib_tlb::SortTypeEnum::SortNumeric;
		var_Column1->AllowSizing = false;
		var_Column1->Width = 36;
		var_Column1->FormatColumn = L"len(value) ? value + ' +'";
	Exlistlib_tlb::IColumnPtr var_Column2 = var_Columns->Add(L"C");
		var_Column2->SortType = Exlistlib_tlb::SortTypeEnum::SortNumeric;
		var_Column2->AllowSizing = false;
		var_Column2->Width = 36;
		var_Column2->FormatColumn = L"len(value) ? value + ' ='";
	Exlistlib_tlb::IColumnPtr var_Column3 = var_Columns->Add(L"A+B+C");
		var_Column3->SortType = Exlistlib_tlb::SortTypeEnum::SortNumeric;
		var_Column3->AllowSizing = false;
		var_Column3->Width = 64;
		var_Column3->ComputedField = L"%1+%2+%3";
		var_Column3->FormatColumn = L"((0:=dbl(value)) < 10? '<fgcolor=808080><font ;7>' :'<b>') + currency(=:0)";
		var_Column3->set_Def(Exlistlib_tlb::DefColumnEnum::exCaptionFormat,TVariant(1));
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h1 = var_Items->Add(TVariant("Item 1"));
	var_Items->set_Caption(h1,TVariant(1),TVariant(7));
	var_Items->set_Caption(h1,TVariant(2),TVariant(3));
	var_Items->set_Caption(h1,TVariant(3),TVariant(1));
	h1 = var_Items->Add(TVariant("Item 2"));
	var_Items->set_Caption(h1,TVariant(1),TVariant(2));
	var_Items->set_Caption(h1,TVariant(2),TVariant(5));
	var_Items->set_Caption(h1,TVariant(3),TVariant(12));
	h1 = var_Items->Add(TVariant("Item 3"));
	var_Items->set_Caption(h1,TVariant(1),TVariant(2));
	var_Items->set_Caption(h1,TVariant(2),TVariant(2));
	var_Items->set_Caption(h1,TVariant(3),TVariant(4));
	h1 = var_Items->Add(TVariant("Item 4"));
	var_Items->set_Caption(h1,TVariant(1),TVariant(2));
	var_Items->set_Caption(h1,TVariant(2),TVariant(9));
	var_Items->set_Caption(h1,TVariant(3),TVariant(4));
List1->EndUpdate();

382
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right

List1->BeginUpdate();
List1->ScrollBars = Exlistlib_tlb::ScrollBarsEnum::DisableBoth;
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"C1");
	var_Columns->Add(L"C2");
	var_Columns->Add(L"C3");
	var_Columns->Add(L"C4");
	var_Columns->Add(L"C5");
	var_Columns->Add(L"C6");
	var_Columns->Add(L"C7");
	var_Columns->Add(L"C8");
List1->RightToLeft = true;
List1->EndUpdate();

381
Can I display the cell's check box after the text

Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Column");
	var_Column->set_Def(Exlistlib_tlb::DefColumnEnum::exCellHasCheckBox,TVariant(true));
	var_Column->set_Def(Exlistlib_tlb::DefColumnEnum::exCellDrawPartsOrder,TVariant("caption,check"));
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CellHasCheckBox(var_Items->Add(TVariant("Caption 1")),TVariant(0),true);
	var_Items->set_CellHasCheckBox(var_Items->Add(TVariant("Caption 2")),TVariant(0),true);

380
Can I change the order of the parts in the cell, as checkbox after the text, and so on

List1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
List1->Columns->Add(L"Column")->set_Def(Exlistlib_tlb::DefColumnEnum::exCellDrawPartsOrder,TVariant("caption,check,icon,icons,picture"));
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Text"));
	var_Items->set_CellImage(h,TVariant(0),1);
	var_Items->set_CellHasCheckBox(h,TVariant(0),true);

379
Can I have an image displayed after the text. Can I get that effect without using HTML content

List1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
List1->Columns->Add(L"Column")->set_Def(Exlistlib_tlb::DefColumnEnum::exCellDrawPartsOrder,TVariant("caption,icon,check,icons,picture"));
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Text"));
	var_Items->set_CellImage(h,TVariant(0),1);

378
Is there any way to display the vertical scroll bar on the left side, as I want to align my data to the right

List1->BeginUpdate();
List1->ScrollBars = Exlistlib_tlb::ScrollBarsEnum::DisableBoth;
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"C1");
	var_Columns->Add(L"C2");
	var_Columns->Add(L"C3");
	var_Columns->Add(L"C4");
	var_Columns->Add(L"C5");
	var_Columns->Add(L"C6");
	var_Columns->Add(L"C7");
	var_Columns->Add(L"C8");
List1->RightToLeft = true;
List1->EndUpdate();

377
How can I change the foreground color for a particular column

Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2")->set_Def(Exlistlib_tlb::DefColumnEnum::exHeaderForeColor,TVariant(8439039));
	var_Columns->Add(L"Column 3");

376
How can I change the background color for a particular column

Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2")->set_Def(Exlistlib_tlb::DefColumnEnum::exHeaderBackColor,TVariant(8439039));
	var_Columns->Add(L"Column 3");

375
How can I display the column using currency format and enlarge the font for certain values

Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Currency");
	var_Column->set_Def(Exlistlib_tlb::DefColumnEnum::exCaptionFormat,TVariant(1));
	var_Column->FormatColumn = L"len(value) ? ((0:=dbl(value)) < 10 ? '<fgcolor=808080><font ;7>' : '<b>') + currency(=:0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("1.23"));
	var_Items->Add(TVariant("2.34"));
	var_Items->Add(TVariant("9.94"));
	var_Items->Add(TVariant("11.94"));
	var_Items->Add(TVariant("1000"));

374
How can I highlight only parts of the cells

Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"");
	var_Column->set_Def(Exlistlib_tlb::DefColumnEnum::exCaptionFormat,TVariant(1));
	var_Column->FormatColumn = L"value replace 'hil' with '<fgcolor=FF0000><b>hil</b></fgcolor>'";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Root"));
	var_Items->Add(TVariant("Child 1"));
	var_Items->Add(TVariant("Child 2"));
	var_Items->Add(TVariant("Child 3"));

373
How can I get the number of occurrences of a specified string in the cell

List1->Columns->Add(L"");
Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"occurrences");
	var_Column->ComputedField = L"lower(%0) count 'o'";
	var_Column->FormatColumn = L"'contains ' + value + ' of \\'o\\' chars'";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Root"));
	var_Items->Add(TVariant("Child 1 oooof the root"));
	var_Items->Add(TVariant("Child 2"));
	var_Items->Add(TVariant("Child 3"));

372
How can I display dates in my format

Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Date");
	var_Column->set_Def(Exlistlib_tlb::DefColumnEnum::exCaptionFormat,TVariant(1));
	var_Column->FormatColumn = L"'<b>' + year(0:=date(value)) + '</b><fgcolor=808080><font ;6> (' + month(=:0) + ' - ' + day(=:0) +')'";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,21).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,22).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,13).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,24).operator double()));

371
How can I display dates in short format

List1->Columns->Add(L"Date")->FormatColumn = L"shortdate(value)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,1).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,2).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,3).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,4).operator double()));

370
How can I display dates in long format

List1->Columns->Add(L"Date")->FormatColumn = L"longdate(value)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,1).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,2).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,3).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,4).operator double()));

369
How can I display only the right part of the cell

List1->Columns->Add(L"");
Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Right");
	var_Column->ComputedField = L"%0 right 2";
	var_Column->FormatColumn = L"'\"' + value + '\"'";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Root"));
	var_Items->Add(TVariant("Child 1"));
	var_Items->Add(TVariant("Child 2"));
	var_Items->Add(TVariant("SChild 3"));

368
How can I display only the left part of the cell

List1->Columns->Add(L"");
List1->Columns->Add(L"Left")->ComputedField = L"%0 left 2";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Root"));
	var_Items->Add(TVariant("Child 1"));
	var_Items->Add(TVariant("Child 2"));
	var_Items->Add(TVariant("SChild 3"));

367
How can I display true or false instead 0 and -1

List1->Columns->Add(L"Boolean")->FormatColumn = L"value != 0 ? 'true' : 'false'";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(true));
	var_Items->Add(TVariant(false));
	var_Items->Add(TVariant(true));
	var_Items->Add(TVariant(0));
	var_Items->Add(TVariant(1));

366
How can I display icons or images instead numbers

List1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Icons");
	var_Column->set_Def(Exlistlib_tlb::DefColumnEnum::exCaptionFormat,TVariant(1));
	var_Column->FormatColumn = L"'The cell displays the icon <img>'+value+'</img> instead ' + value";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(1));
	var_Items->Add(TVariant(2));
	var_Items->Add(TVariant(3));

365
How can I display the column using currency

List1->Columns->Add(L"Currency")->FormatColumn = L"currency(dbl(value))";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("1.23"));
	var_Items->Add(TVariant("2.34"));
	var_Items->Add(TVariant("0"));
	var_Items->Add(TVariant(5));
	var_Items->Add(TVariant("10000.99"));

364
Is is possible to use HTML tags to display in the filter caption

List1->BeginUpdate();
List1->FilterBarPromptVisible = true;
List1->FilterBarCaption = L"This is a bit of text being displayed in the filter bar.";
List1->Columns->Add(L"");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
List1->EndUpdate();

363
How can I find the number of items after filtering
List1->BeginUpdate();
List1->Columns->Add(L"");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant(""));
	var_Items->set_Caption(h,TVariant(0),TVariant(var_Items->VisibleItemCount));
List1->EndUpdate();

362
How can I change the filter caption

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptWords | Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAll;
List1->FilterBarPromptPattern = L"london robert";
List1->FilterBarCaption = L"<r>Found: ... ";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

361
While using the filter prompt is it is possible to use wild characters

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptPattern;
List1->FilterBarPromptPattern = L"lon* seat*";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

360
How can I list all items that contains any of specified words, not necessary at the beggining

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptStartWords | Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAny;
List1->FilterBarPromptPattern = L"london davolio";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

359
How can I list all items that contains any of specified words, not strings

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptWords | Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAny;
List1->FilterBarPromptPattern = L"london nancy";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

358
How can I list all items that contains all specified words, not strings

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptWords | Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAll;
List1->FilterBarPromptPattern = L"london robert";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

357
I've noticed that the filtering by prompt is not case sensitive, is is possible to make it case sensitive

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptCaseSensitive | Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAny;
List1->FilterBarPromptPattern = L"Anne";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

356
Is it possible to list only items that ends with any of specified strings

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptEndWith;
List1->set_FilterBarPromptColumns(TVariant("0"));
List1->FilterBarPromptPattern = L"Fuller";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

355
Is it possible to list only items that ends with any of specified strings

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptEndWith;
List1->set_FilterBarPromptColumns(TVariant("0"));
List1->FilterBarPromptPattern = L"Fuller";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

354
Is it possible to list only items that starts with any of specified strings

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptStartWith;
List1->set_FilterBarPromptColumns(TVariant("0"));
List1->FilterBarPromptPattern = L"An M";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

353
Is it possible to list only items that starts with specified string

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptStartWith;
List1->set_FilterBarPromptColumns(TVariant("0"));
List1->FilterBarPromptPattern = L"A";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

352
How can I specify that the list should include any of the seqeunces in the pattern

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAny;
List1->FilterBarPromptPattern = L"london seattle";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

351
How can I specify that all sequences in the filter pattern must be included in the list

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptType = Exlistlib_tlb::FilterPromptEnum::exFilterPromptContainsAll;
List1->FilterBarPromptPattern = L"london manager";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

350
How do I change at runtime the filter prompt

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPromptPattern = L"london manager";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

349
How do I specify to filter only a single column when using the filter prompt

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->set_FilterBarPromptColumns(TVariant("2,3"));
List1->FilterBarPromptPattern = L"london";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

348
How do I change the prompt or the caption being displayed in the filter bar

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
List1->FilterBarPrompt = L"changed";
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
List1->EndUpdate();

347
How do I enable the filter prompt feature

List1->BeginUpdate();
List1->ColumnAutoResize = true;
List1->ContinueColumnScroll = false;
List1->MarkSearchColumn = false;
List1->SearchColumnIndex = 1;
List1->FilterBarPromptVisible = true;
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Name")->Width = 96;
	var_Columns->Add(L"Title")->Width = 96;
	var_Columns->Add(L"City");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h0 = var_Items->Add(TVariant("Nancy Davolio"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Andrew Fuller"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Vice President, Sales"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Tacoma"));
	var_Items->set_SelectItem(h0,true);
	h0 = var_Items->Add(TVariant("Janet Leverling"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Kirkland"));
	h0 = var_Items->Add(TVariant("Margaret Peacock"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Redmond"));
	h0 = var_Items->Add(TVariant("Steven Buchanan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Manager"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Michael Suyama"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Robert King"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
	h0 = var_Items->Add(TVariant("Laura Callahan"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Inside Sales Coordinator"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("Seattle"));
	h0 = var_Items->Add(TVariant("Anne Dodsworth"));
	var_Items->set_Caption(h0,TVariant(1),TVariant("Sales Representative"));
	var_Items->set_Caption(h0,TVariant(2),TVariant("London"));
List1->EndUpdate();

346
Is it possible to change the style for the vertical or horizontal grid lines, in the list area

List1->BeginUpdate();
List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum::exAllLines;
List1->GridLineStyle = Exlistlib_tlb::GridLinesStyleEnum::exGridLinesVSolid | Exlistlib_tlb::GridLinesStyleEnum::exGridLinesHDot4;
List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
List1->Columns->Add(L"C3");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("SubItem 1.2"));
	var_Items->set_Caption(h,TVariant(2),TVariant("SubItem 1.3"));
	h = var_Items->Add(TVariant("Item 2"));
	var_Items->set_Caption(h,TVariant(1),TVariant("SubItem 2.2"));
	var_Items->set_Caption(h,TVariant(2),TVariant("SubItem 2.3"));
List1->EndUpdate();

345
Is it possible to change the style for the grid lines, for instance to be solid not dotted

List1->BeginUpdate();
List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum::exAllLines;
List1->GridLineStyle = Exlistlib_tlb::GridLinesStyleEnum::exGridLinesSolid;
List1->Columns->Add(L"Column");
List1->EndUpdate();

344
How can I filter programatically using more columns

List1->BeginUpdate();
List1->MarkSearchColumn = false;
Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Car");
	var_Columns->Add(L"Equipment");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_Caption(var_Items->Add(TVariant("Mazda")),TVariant(1),TVariant("Air Bag"));
	var_Items->set_Caption(var_Items->Add(TVariant("Toyota")),TVariant(1),TVariant("Air Bag,Air condition"));
	var_Items->set_Caption(var_Items->Add(TVariant("Ford")),TVariant(1),TVariant("Air condition"));
	var_Items->set_Caption(var_Items->Add(TVariant("Nissan")),TVariant(1),TVariant("Air Bag,ABS,ESP"));
	var_Items->set_Caption(var_Items->Add(TVariant("Mazda")),TVariant(1),TVariant("Air Bag, ABS,ESP"));
	var_Items->set_Caption(var_Items->Add(TVariant("Mazda")),TVariant(1),TVariant("ABS,ESP"));
Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->get_Item(TVariant("Car"));
	var_Column->FilterType = Exlistlib_tlb::FilterTypeEnum::exFilter;
	var_Column->Filter = L"Mazda";
Exlistlib_tlb::IColumnPtr var_Column1 = List1->Columns->get_Item(TVariant("Equipment"));
	var_Column1->FilterType = Exlistlib_tlb::FilterTypeEnum::exPattern;
	var_Column1->Filter = L"*ABS*|*ESP*";
List1->ApplyFilter();
List1->EndUpdate();

343
How do I find an item based on my extra data

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->set_ItemData(var_Items->Add(TVariant("Item 3")),TVariant(1234));
	var_Items->Add(TVariant("Item 4"));
	var_Items->set_ItemBold(var_Items->get_FindItemData(TVariant(1234),TNoParam()),true);

342
How do I print the control's content

List1->BeginUpdate();
List1->Columns->Add(L"Number");
List1->Columns->Add(L"Currency")->ComputedField = L"len(%0) ? currency(dbl(%0)) : ''";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("1.23"));
	var_Items->Add(TVariant("2.34"));
	var_Items->Add(TVariant("0"));
	var_Items->set_ItemBackColor(var_Items->Add(TNoParam()),RGB(255,128,128));
	var_Items->Add(TVariant("10000.99"));
List1->EndUpdate();
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		ExPrint 1.0 Control Library

	TypeLib: ExPrint.dll

	to define the namespace: Exprintlib_tlb
*/
//#include "EXPRINTLIB_TLB.h"
Exprintlib_tlb::IExPrintPtr var_Print = Variant::CreateObject(L"Exontrol.Print");
	var_Print->PrintExt = (IUnknown*)List1->DefaultDispatch;
	var_Print->Preview();

341
How can I display the currency only for not empty cells
List1->Columns->Add(L"Number");
List1->Columns->Add(L"Currency")->ComputedField = L"len(%0) ? currency(dbl(%0)) : ''";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("1.23"));
	var_Items->Add(TVariant("2.34"));
	var_Items->Add(TVariant("0"));
	var_Items->set_ItemBackColor(var_Items->Add(TNoParam()),RGB(255,128,128));
	var_Items->Add(TVariant("10000.99"));

340
Is there a function to display the number of days between two date including the number of hours

List1->Columns->Add(L"Start")->Width = 32;
List1->Columns->Add(L"End");
List1->Columns->Add(L"Duration")->ComputedField = TVariant(String("2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '' : str(=:1) + ' day(s)') + ( 3:=round(24*(=:0-floor(=:0))) ? (len(=:2) ? ' and ' : ") +
"'') + =:3 + ' hour(s)' : '' )");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant(TDateTime(2001,1,11).operator double()));
	var_Items->set_Caption(h,TVariant(1),TVariant(TDateTime(2001,1,14).operator double()));
	h = var_Items->Add(TVariant(TDateTime(2002,2,22,12,00,00,0).operator double()));
	var_Items->set_Caption(h,TVariant(1),TVariant(TDateTime(2002,3,14,13,00,00,0).operator double()));
	h = var_Items->Add(TVariant(TDateTime(2003,3,13).operator double()));
	var_Items->set_Caption(h,TVariant(1),TVariant(TDateTime(2003,4,11,11,00,00,0).operator double()));

339
Is there a function to display the number of days between two date including the number of hours

List1->Columns->Add(L"Start");
List1->Columns->Add(L"End");
List1->Columns->Add(L"Duration")->ComputedField = L"\"D \" + int(date(%1)-date(%0)) + \" H \" + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant(TDateTime(2001,1,11).operator double()));
	var_Items->set_Caption(h,TVariant(1),TVariant(TDateTime(2001,1,14,23,00,00,0).operator double()));
	h = var_Items->Add(TVariant(TDateTime(2002,2,22,12,00,00,0).operator double()));
	var_Items->set_Caption(h,TVariant(1),TVariant(TDateTime(2002,3,14,13,00,00,0).operator double()));
	h = var_Items->Add(TVariant(TDateTime(2003,3,13).operator double()));
	var_Items->set_Caption(h,TVariant(1),TVariant(TDateTime(2003,4,11,11,00,00,0).operator double()));

338
How can I display the number of days between two dates

List1->Columns->Add(L"Start");
List1->Columns->Add(L"End");
List1->Columns->Add(L"Duration")->ComputedField = L"(date(%1)-date(%0)) + ' days'";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant(TDateTime(2001,1,11).operator double()));
	var_Items->set_Caption(h,TVariant(1),TVariant(TDateTime(2001,1,14).operator double()));
	h = var_Items->Add(TVariant(TDateTime(2002,2,22).operator double()));
	var_Items->set_Caption(h,TVariant(1),TVariant(TDateTime(2002,3,14).operator double()));
	h = var_Items->Add(TVariant(TDateTime(2003,3,13).operator double()));
	var_Items->set_Caption(h,TVariant(1),TVariant(TDateTime(2003,4,11).operator double()));

337
How can I get second part of the date

List1->Columns->Add(L"Date");
List1->Columns->Add(L"Second")->ComputedField = L"sec(date(%0))";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,11,10,10,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,22,11,01,22,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,13,12,23,01,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,14,13,11,59,0).operator double()));

336
How can I get minute part of the date

List1->Columns->Add(L"Date");
List1->Columns->Add(L"Minute")->ComputedField = L"min(date(%0))";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,11,10,10,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,22,11,01,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,13,12,23,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,14,13,11,00,0).operator double()));

335
How can I check the hour part only so I know it was afternoon

List1->ConditionalFormats->Add(L"hour(%0)>=12",TNoParam())->Bold = true;
List1->Columns->Add(L"Date");
List1->Columns->Add(L"Hour")->ComputedField = L"hour(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,11,10,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,22,11,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,13,12,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,14,13,00,00,0).operator double()));

334
What about a function to get the day in the week, or days since Sunday

List1->Columns->Add(L"Date");
List1->Columns->Add(L"WeekDay")->ComputedField = L"weekday(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,11,10,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,22,11,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,13,12,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,14,13,00,00,0).operator double()));

333
Is there any function to get the day of the year or number of days since January 1st

List1->Columns->Add(L"Date");
List1->Columns->Add(L"Day since January 1st")->ComputedField = L"yearday(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,11,10,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,22,11,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,13,12,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,14,13,00,00,0).operator double()));

332
How can I display only the day of the date

List1->Columns->Add(L"Date");
List1->Columns->Add(L"Day")->ComputedField = L"day(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,11,10,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,22,11,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,13,12,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,14,13,00,00,0).operator double()));

331
How can I display only the month of the date

List1->Columns->Add(L"Date");
List1->Columns->Add(L"Month")->ComputedField = L"month(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,2,11,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,3,12,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,4,13,00,00,0).operator double()));

330
How can I get only the year part from a date expression

List1->Columns->Add(L"Date");
List1->Columns->Add(L"Year")->ComputedField = L"year(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,2,11,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,3,12,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,4,13,00,00,0).operator double()));

329
Can I convert the expression to date

List1->Columns->Add(L"Number");
List1->Columns->Add(L"Date")->ComputedField = L"date(dbl(%0))";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("-1.98"));
	var_Items->Add(TVariant("30000.99"));
	var_Items->Add(TVariant("3561.23"));
	var_Items->Add(TVariant("1232.34"));

328
Can I convert the expression to a number, double or float

List1->Columns->Add(L"Number");
List1->Columns->Add(L"Number + 2")->ComputedField = L"dbl(%0)+2";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("-1.98"));
	var_Items->Add(TVariant("0.99"));
	var_Items->Add(TVariant("1.23"));
	var_Items->Add(TVariant("2.34"));

327
How can I display dates in long format

List1->Columns->Add(L"Date");
List1->Columns->Add(L"LongFormat")->ComputedField = L"longdate(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,2,11,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,3,12,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,4,13,00,00,0).operator double()));

326
How can I display dates in short format

List1->Columns->Add(L"Date");
List1->Columns->Add(L"ShortFormat")->ComputedField = L"shortdate(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,2,11,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,3,12,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,4,13,00,00,0).operator double()));

325
How can I display the time only of a date expression

List1->Columns->Add(L"Date");
List1->Columns->Add(L"Time")->ComputedField = L"'time is:' + time(date(%0))";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(TDateTime(2001,1,1,10,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2002,2,2,11,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2003,3,3,12,00,00,0).operator double()));
	var_Items->Add(TVariant(TDateTime(2004,4,4,13,00,00,0).operator double()));

324
Is there any function to display currencies, or money formatted as in the control panel

List1->Columns->Add(L"Number");
List1->Columns->Add(L"Currency")->ComputedField = L"currency(dbl(%0))";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("1.23"));
	var_Items->Add(TVariant("2.34"));
	var_Items->Add(TVariant("10000.99"));

323
How can I convert the expression to a string so I can look into the date string expression for month's name

List1->Columns->Add(L"Number");
List1->Columns->Add(L"Str")->ComputedField = L"str(%0) + ' AA'";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("-1.98"));
	var_Items->Add(TVariant("0.99"));
	var_Items->Add(TVariant("1.23"));
	var_Items->Add(TVariant("2.34"));

322
Can I display the absolute value or positive part of the number

List1->Columns->Add(L"Number");
List1->Columns->Add(L"Abs")->ComputedField = L"abs(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("-1.98"));
	var_Items->Add(TVariant("0.99"));
	var_Items->Add(TVariant("1.23"));
	var_Items->Add(TVariant("2.34"));

321
Is there any function to get largest number with no fraction part that is not greater than the value

List1->Columns->Add(L"Number");
List1->Columns->Add(L"Floor")->ComputedField = L"floor(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("-1.98"));
	var_Items->Add(TVariant("0.99"));
	var_Items->Add(TVariant("1.23"));
	var_Items->Add(TVariant("2.34"));

320
Is there any function to round the values base on the .5 value

List1->Columns->Add(L"Number");
List1->Columns->Add(L"Round")->ComputedField = L"round(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("-1.98"));
	var_Items->Add(TVariant("0.99"));
	var_Items->Add(TVariant("1.23"));
	var_Items->Add(TVariant("2.34"));

319
How can I get or display the integer part of the cell

List1->Columns->Add(L"Number");
List1->Columns->Add(L"Int")->ComputedField = L"int(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("-1.98"));
	var_Items->Add(TVariant("0.99"));
	var_Items->Add(TVariant("1.23"));
	var_Items->Add(TVariant("2.34"));

318
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )

List1->Columns->Add(L"")->ComputedField = L"proper(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("item item"));
	var_Items->Add(TVariant("item item"));
	var_Items->Add(TVariant("item item"));

317
Is there any option to display cells in uppercase

List1->Columns->Add(L"")->ComputedField = L"upper(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->Add(TVariant("Item 4 - child"));

316
Is there any option to display cells in lowercase

List1->Columns->Add(L"")->ComputedField = L"lower(%0)";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->Add(TVariant("Item 4 - child"));

315
How can I mark the cells that has a specified type, ie strings only

List1->ConditionalFormats->Add(L"type(%0) = 8",TNoParam())->ForeColor = RGB(255,0,0);
List1->Columns->Add(L"");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant(2));
	var_Items->Add(TVariant("Item 4 - child"));

314
How can I bold the items that contains data or those who displays empty strings

List1->ConditionalFormats->Add(L"not len(%1)=0",TNoParam())->Bold = true;
List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	long hC = var_Items->Add(TVariant("Item 3"));
	var_Items->set_Caption(hC,TVariant(1),TVariant("1"));
	var_Items->Add(TVariant("Item 3"));

313
Can I change the background color for items or cells that contains a specified string

List1->ConditionalFormats->Add(L"%0 contains 'hi'",TNoParam())->BackColor = RGB(255,0,0);
List1->Columns->Add(L"");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->Add(TVariant("Item 4 - child"));

312
Is there any option to change the fore color for cells or items that ends with a specified string

List1->ConditionalFormats->Add(L"%0 endwith '22'",TNoParam())->ForeColor = RGB(255,0,0);
List1->Columns->Add(L"");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 1.22"));
	var_Items->Add(TVariant("Item 2.22"));

311
How can I highlight the cells or items that starts with a specified string

List1->ConditionalFormats->Add(L"%0 startwith 'C'",TNoParam())->Underline = true;
List1->Columns->Add(L"");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("CItem 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->Add(TVariant("Item 4"));

310
How can I change the foreground color for a particular column

Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2")->set_Def(Exlistlib_tlb::DefColumnEnum::exHeaderForeColor,TVariant(8439039));
	var_Columns->Add(L"Column 3");

309
How can I change the background color for a particular column

Exlistlib_tlb::IColumnsPtr var_Columns = List1->Columns;
	var_Columns->Add(L"Column 1");
	var_Columns->Add(L"Column 2")->set_Def(Exlistlib_tlb::DefColumnEnum::exHeaderBackColor,TVariant(8439039));
	var_Columns->Add(L"Column 3");

308
How can I display the column's header using multiple lines

List1->HeaderHeight = 128;
List1->HeaderSingleLine = false;
List1->Columns->Add(L"This is just a column that should break the header.")->Width = 32;
List1->Columns->Add(L"This is just another column that should break the header.");

307
How can I align the text/caption on the scroll bar

List1->ScrollPartCaption[Exlistlib_tlb::ScrollBarEnum::exHScroll,Exlistlib_tlb::ScrollPartEnum::exLowerBackPart] = L"left";
List1->ScrollPartCaptionAlignment[Exlistlib_tlb::ScrollBarEnum::exHScroll,Exlistlib_tlb::ScrollPartEnum::exLowerBackPart] = Exlistlib_tlb::AlignmentEnum::LeftAlignment;
List1->ScrollPartCaption[Exlistlib_tlb::ScrollBarEnum::exHScroll,Exlistlib_tlb::ScrollPartEnum::exUpperBackPart] = L"right";
List1->ScrollPartCaptionAlignment[Exlistlib_tlb::ScrollBarEnum::exHScroll,Exlistlib_tlb::ScrollPartEnum::exUpperBackPart] = Exlistlib_tlb::AlignmentEnum::RightAlignment;
List1->ColumnAutoResize = false;
List1->Columns->Add(L"1");
List1->Columns->Add(L"2");
List1->Columns->Add(L"3");
List1->Columns->Add(L"4");
List1->Columns->Add(L"5");
List1->Columns->Add(L"6");

306
How do I select the next row/item

List1->Columns->Add(L"Column");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->set_SelectItem(var_Items->get_NextVisibleItem(var_Items->FocusItem),true);

305
How do I enable resizing ( changing the height ) the items at runtime

List1->ItemsAllowSizing = Exlistlib_tlb::ItemsAllowSizingEnum::exResizeItem;
List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum::exHLines;
List1->ScrollBySingleLine = true;
List1->Columns->Add(L"Column");
List1->Items->Add(TVariant("Item 1"));
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemHeight(var_Items->Add(TVariant("Item 2")),48);
List1->Items->Add(TVariant("Item 3"));
List1->Items->Add(TVariant("Item 4"));

304
How do I enable resizing all the items at runtime

List1->ItemsAllowSizing = Exlistlib_tlb::ItemsAllowSizingEnum::exResizeAllItems;
List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum::exHLines;
List1->Columns->Add(L"Column");
List1->Items->Add(TVariant("Item 1"));
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemHeight(var_Items->Add(TVariant("Item 2")),48);
List1->Items->Add(TVariant("Item 3"));

303
How can I remove the filter

Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Column");
	var_Column->DisplayFilterButton = true;
	var_Column->FilterType = Exlistlib_tlb::FilterTypeEnum::exBlanks;
List1->ApplyFilter();
List1->ClearFilter();

302
How do I change the control's border, using your EBN files

List1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
List1->Appearance = Exlistlib_tlb::AppearanceEnum(0x1000000);

301
Can I change the style for break or divider line

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	long h = var_Items->Add(TNoParam());
	var_Items->set_ItemBreak(h,Exlistlib_tlb::BreakLineEnum::DoubleLine);
	var_Items->set_SelectableItem(h,false);
	var_Items->Add(TVariant("Item 3"));